#define _CRT_SECURE_NO_WARNINGS 1

#include "Queue.h"

int main()
{
	Queue queue;
	QueueInit(&queue);
	QueuePush(&queue, 1);
	QueuePush(&queue, 2);
	QueuePush(&queue, 3);
	QueuePush(&queue, 4);
	QueuePop(&queue);
	printf("%d\n", QueueEmpty(&queue));
	printf("%d\n", QueueFront(&queue));
	printf("%d\n", QueueBack(&queue));
	printf("%d\n", QueueSize(&queue));
	QueueNode* cur = queue.phead;
	while (cur != NULL)
	{
		printf("%d ", cur->data);
		cur = cur->next;
	}
	printf("\n");
	QueueDestroy(&queue);
	cur = queue.phead;
	while (cur != NULL)
	{
		printf("%d ", cur->data);
		cur = cur->next;
	}
	return 0;
}